package com.demo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *VTE预防禁忌
 * @author zm
 * @since 2020-11-25
 */
@Data
@TableName("pd_vte_taboo_score_item")
@ApiModel(value="VteTabooScoreItem对象", description="VTE预防禁忌评论项表")
public class VteTabooScoreItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "vte禁忌项目ID序号")
    @TableId(value = "vte_item_id", type = IdType.AUTO)
    private Integer vteItemId;

    @ApiModelProperty(value = "vte禁忌项目名称")
    @TableField("vte_item_name")
    @NotBlank(message = "vte禁忌项目名称不能为空")
    private String vteItemName;

    @ApiModelProperty(value = "vte禁忌项目排序号小在前大在后")
    @TableField("vte_item_sort")
    @NotNull(message = "vte禁忌项目排序号不能为空")
    private Integer vteItemSort;

    @ApiModelProperty(value = "常见出血危险因素 1外科手术危险 2因素出血后果 3严重手术机械预防禁忌症")
    @TableField("vte_score_value")
    @NotNull(message = "常见出血危险因素不能为空")
    private Integer vteScoreValue;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID号")
    @TableField("created_user_id")
    @NotNull(message = "创建人ID不能为空")
    private Integer createdUserId;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_time")
    private Date deletedTime;

    @ApiModelProperty(value = "删除人ID号")
    @TableField("deleted_user_id")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Integer deletedUserId;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time",fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    @ApiModelProperty(value = "更新人ID号")
    @TableField("updated_user_id")
    private Integer updatedUserId;


}
